<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>编辑校区-校区管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
	<script>
	$(function(){
		$("#btn_save").click(function(){
			$("form").submit();
		});
	})
	</script>
</head>
<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html"}>
		</div>
		<div id="ContMianBox">
			<!--star子栏目-->
            <div class="sub-colum">
			    <div class="tit"><{$left_menu_min.menu}></div>
			    <ul>
			        <{foreach from=$left_menu_min.list item=item}>
			        <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
			        <{/foreach}>
			    </ul>
			</div>
            <!--end子栏目-->
			<!--end left-->
			<div class="container narrow">
			    <!--star conter-->
			    <div class="cetContent">
						<div class="tit p-lr20">
						    <a class="c-40d064" href="/school_campus">校区管理</a><em class="p-lr10 c-CCCCCC fs12">/</em><em>编辑校区</em>
						</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">

					        <div class="tabMainCont">

					            <!--star 编辑基本信息-->
					            <div class="tabItem step-02">

								<form action="<{$post_url}>" method="post" class="layui-form">

									<div class="layui-form-item">
										<label class="layui-form-label">校区名称：</label>
										<div class="layui-input-block">
										 <input type="text" name="name" style="width: 500px;" value="<{if isset($name)}><{$name}><{/if}>" placeholder="请输入校区" required  lay-verify="required" autocomplete="off" class="layui-input">
										 <{if isset($name_err)}>
										<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
										<span class="tip" style=" padding:2px 5px;"><{$name_err}></span>
										<{/if}>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">校长：</label>
										<div class="layui-input-inline">
										<input type="text"  name="schoolmaster" maxlength="10" value="<{if isset($schoolmaster)}><{$schoolmaster}><{/if}>" required lay-verify="required" placeholder="校长" autocomplete="off" class="layui-input">
										<{if isset($schoolmaster_err)}>
										<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
										<span class="tip" style=" padding:2px 5px;"><{$schoolmaster_err}></span>
										<{/if}>
										</div>
										<div class="layui-form-mid layui-word-aux"></div>

									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">电话：</label>
										<div class="layui-input-inline">
										<input type="text"  name="tel" maxlength="20" value="<{if isset($tel)}><{$tel}><{/if}>" required lay-verify="required" placeholder="电话" autocomplete="off" class="layui-input">
										<{if isset($tel_err)}>
											<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
											<span class="tip" style=" padding:2px 5px;"><{$tel_err}></span>
											<{/if}>
										</div>
										<div class="layui-form-mid layui-word-aux"></div>

									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">地址：</label>
										<div class="layui-input-block">
										 <input type="text" name="address" style="width: 500px;" value="<{if isset($address)}><{$address}><{/if}>" placeholder="地址"    autocomplete="off" class="layui-input">
										 <{if isset($address_err)}>
										<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
										<span class="tip" style=" padding:2px 5px;"><{$address_err}></span>
										<{/if}>
										</div>
									</div>

									<div class="layui-form-item">
									 <div class="layui-input-block">
										 <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
										 <button type="reset" class="layui-btn layui-btn-primary">取消</button>
										 <a href="/school_campus" >返回列表</a>
									 </div>
									</div>


					            </form>
					            </div>
					            <!--end 编辑基本信息-->

					        </div>


					    </div>
					</div>
					</div>
					<!--end内容区域-->

		    <!--end conter-->
		</div>


	</div>
</div>
<{include file="footer.html"}>
<script>
	layui.use('laydate', function(){
		var laydate = layui.laydate;

		var start = {
			min: laydate.now(-30)
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				end.min = datas; //开始日选好后，重置结束日的最小日期
				end.start = datas //将结束日的初始值设定为开始日
			}
		};

		var end = {
			min: laydate.now()
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				start.max = datas; //结束日选好后，重置开始日的最大日期
			}
		};

		document.getElementById('LAY_demorange_s').onclick = function(){
			start.elem = this;
			laydate(start);
		}
		document.getElementById('LAY_demorange_e').onclick = function(){
			end.elem = this
			laydate(end);
		}

	});
</script>

</body>
</html>
